package cn.jtfadmin.activiti.domain.entity;

import cn.jtfadmin.base.data.jpa.domain.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 在线表单设计
 */
@Data
@Entity
@Table(name = "ACT_FORM_DESIGN")
public class FormDesignEntity extends BaseEntity {

    /**
     * 表单名称
     */
    @Column(name = "name", nullable = false)
    @NotBlank
    @Size(max = 200)
    protected String name;




    /**
     * 模型id
     */
    @Column(name = "model_id",  nullable = false)
    @NotBlank
    protected String modelId;

    /**
     * 表单内容
     */
    @Lob
    @Column(name = "content")
    protected String content;
}
